home *** CD-ROM | disk | FTP | other *** search
- head 1.2;
- branch ;
- access ;
- symbols sprited:1.2.1;
- locks ; strict;
- comment @ * @;
-
-
- 1.2
- date 88.07.29.17.08.46; author ouster; state Exp;
- branches 1.2.1.1;
- next 1.1;
-
- 1.1
- date 88.06.19.14.29.22; author ouster; state Exp;
- branches 1.1.1.1;
- next ;
-
- 1.1.1.1
- date 91.12.10.16.52.01; author kupfer; state Exp;
- branches ;
- next ;
-
- 1.2.1.1
- date 91.11.27.13.11.39; author kupfer; state Exp;
- branches ;
- next ;
-
-
- desc
- @@
-
-
- 1.2
- log
- @Lint.
- @
- text
- @/*
- * Ioc_Reposition.c --
- *
- * Source code for the Ioc_Reposition library procedure.
- *
- * Copyright 1988 Regents of the University of California
- * Permission to use, copy, modify, and distribute this
- * software and its documentation for any purpose and without
- * fee is hereby granted, provided that the above copyright
- * notice appear in all copies. The University of California
- * makes no representations about the suitability of this
- * software for any purpose. It is provided "as is" without
- * express or implied warranty.
- */
-
- #ifndef lint
- static char rcsid[] = "$Header: Ioc_Reposition.c,v 1.1 88/06/19 14:29:22 ouster Exp $ SPRITE (Berkeley)";
- #endif not lint
-
- #include <sprite.h>
- #include <fs.h>
-
-
- /*
- *----------------------------------------------------------------------
- *
- * Ioc_Reposition --
- *
- * Reposition the access position on a filesystem stream. The next
- * read or write will start at the byte offset specified by the
- * combination of base and offset. Base has three values corresponding
- * to the beginning of file, current position, and end of file.
- *
- * Results:
- * None.
- *
- * Side effects:
- * Sets the stream access position.
- *
- *----------------------------------------------------------------------
- */
-
- ReturnStatus
- Ioc_Reposition(streamID, base, offset, newOffsetPtr)
- int streamID; /* StreamID returned from Fs_Open */
- int base; /* IOC_BASE_ZERO for beginning of file,
- * IOC_BASE_CURRENT for the current position,
- * IOC_BASE_EOF for end of file. */
- int offset; /* Byte offset relative to base */
- int *newOffsetPtr; /* The resulting access position */
- {
- register ReturnStatus status;
- Ioc_RepositionArgs args;
-
- args.base = base;
- args.offset = offset;
- status = Fs_IOControl(streamID, IOC_REPOSITION, sizeof(Ioc_RepositionArgs),
- (Address)&args, sizeof(int), (Address) newOffsetPtr);
- return(status);
- }
- @
-
-
- 1.2.1.1
- log
- @Initial branch for Sprite server.
- @
- text
- @d17 1
- a17 1
- static char rcsid[] = "$Header: /sprite/src/lib/c/syscall/RCS/Ioc_Reposition.c,v 1.2 88/07/29 17:08:46 ouster Exp $ SPRITE (Berkeley)";
- @
-
-
- 1.1
- log
- @Initial revision
- @
- text
- @d17 1
- a17 1
- static char rcsid[] = "$Header: proto.c,v 1.2 88/03/11 08:39:08 ouster Exp $ SPRITE (Berkeley)";
- d58 1
- a58 1
- (Address)&args, sizeof(int), newOffsetPtr);
- @
-
-
- 1.1.1.1
- log
- @Initial branch for Sprite server.
- @
- text
- @d17 1
- a17 1
- static char rcsid[] = "$Header: /sprite/src/lib/c/syscall/RCS/Ioc_Reposition.c,v 1.1 88/06/19 14:29:22 ouster Exp $ SPRITE (Berkeley)";
- @
-